package com.yudean.esb.service;

import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * 提供ERP系统的财务经营数据接口
 */
@WebService
public interface ERPFinPerforService {

    /**
     * 获得公司净利润
     * @param compCode        公司三字码
     * @param periodName      期间
     * @param performanceCode 指标代码
     * @param viewName        值类型
     * @param userName        用户名
     * @param passwd          密码
     * @return                根据公司三字码、期间，指标代码，用户账号、密码查询财务经营数据
     */
    String getFinPerformanceData(@WebParam(name = "compCode") String compCode,
                                 @WebParam(name = "periodName") String periodName,
                                 @WebParam(name = "performanceCode") String performanceCode,
                                 @WebParam(name = "viewName") String viewName,
                                 @WebParam(name = "userName") String userName,
                                 @WebParam(name = "passwd") String passwd);


    String getFinPerformanceDataByHYPCode(@WebParam(name = "hypCode")String hypCode,
                                          @WebParam(name = "periodName")String periodName,
                                          @WebParam(name = "performanceCode")String performanceCode,
                                          @WebParam(name = "viewName")String viewName,
                                          @WebParam(name = "userName")String userName,
                                          @WebParam(name = "passwd") String passwd);

    /**
     * @param periodName    期间
     * @param userName      用户账号
     * @param passwd        用户密码
     * @return              根据期间，用户账号、密码查询所有源数据‘HYP’的财务经营数据
     */
    String getHypFinPerformanceDataByPeriodName(@WebParam(name = "periodName") String periodName,
                                                @WebParam(name = "userName") String userName,
                                                @WebParam(name = "passwd") String passwd);

    /**
     * @param periodName    期间
     * @param pageNo        页码
     * @param pageSize      页面大小
     * @param userName      用户账号
     * @param passwd        用户密码
     * @return              根据期间，页码，页面大小，用户账号、密码查询所有源数据‘HYP’的财务经营数据（分页方式）
     */
    String getHypFinPerformanceDataByPeriodNamePageSize(@WebParam(name = "periodName") String periodName,
                                                        @WebParam(name = "pageNo") String pageNo,
                                                        @WebParam(name = "pageSize") String pageSize,
                                                        @WebParam(name = "userName") String userName,
                                                        @WebParam(name = "passwd") String passwd);


}
